<template>
    <div  class="category">
        <h3>{{title}}分类</h3>
        <slot :game='gameArr'>等待填充1..</slot>
    </div>
</template>

<script>
    export default {
        name: 'Category',
        props:['title'],
        data() {
            return {
                gameArr:['LOL手游','王者荣耀','和平精英','三国杀']
            }
        },
    }
</script>

<style scoped>
    .category {
        background-color: skyblue;
        width: 200px;
        height: 300px;
    }
    h3{
        background-color: orange;
        text-align: center;
    }
    img,video{
        width: 100%;
    }
</style>